package cloud.simple.service.manage;

import cloud.simple.service.dao.UserDao;
import cloud.simple.service.model.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * Created by feng on 16/9/18.
 */
@Service
@Transactional
public class UserService {

    @Autowired
    private UserDao userDao;

    public List<User> findAll() {
        List<User> users = userDao.findAll();
        return users;
    }
}
